package com.hex.ds.hdrs.log.service;

import com.hex.ds.hdrs.log.dao.ServerInteractLogHisDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;


@Slf4j
@Service
public class ServerInteractLogHisService {

    @Autowired
    private ServerInteractLogHisDao serverInteractLogHisDao;

    /**
     * @Method: dataBackup <br>
     * @Param: [map] <br>
     * @Return: void <br>
     * @Description：数据备份<br>
     * @Author： gc.zuo<br>
     * @Date： 2021/6/10 14:52 <br>
     * @Version： V1.0<br>
     */
    public void dataBackup(Map map) {
        serverInteractLogHisDao.dataBackup(map);
    }

    /**
     * @Method: delByBitchId <br>
     * @Param: [bitchId] <br>
     * @Return: void <br>
     * @Description：根据批次号删除日志数据<br>
     * @Author： gc.zuo<br>
     * @Date： 2021/6/10 14:52 <br>
     * @Version： V1.0<br>
     */
    public void delByBitchId(String bitchId) {
        Map map = new HashMap(16);
        map.put("bitchId", bitchId);
        serverInteractLogHisDao.delByBitchId(map);
    }
}
